package com.template;

import org.springframework.transaction.annotation.Transactional;
import org.springframework.transaction.interceptor.TransactionAspectSupport;

import java.util.ArrayList;
import java.util.List;

public class Interface {

    @Transactional
    public DTZFPOHPP01PRD workorder(String ids){
        String returnmsg = "";
       DTZFPOHPP01PRD dtzfpohpp01PRD = new DTZFPOHPP01PRD();
        try {
//            List<UWonoStructure> uWonoStructures = iuWonoStructureService.selectStateUWonoStructureByIds(ids);
//            Iterator<UWonoStructure> iterator = uWonoStructures.iterator();
//            List listdetail1 = new ArrayList<>();
//            while (iterator.hasNext()){
//                UWonoStructure uWonoStructure =  iterator.next();
//                listdetail1.add(uWonoStructure.getAufnr());
//            }



            returnmsg = "成功";
        }catch (Exception e){
            TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
            if (returnmsg == ""){
                returnmsg = "发送数据失败";
            }
            e.printStackTrace();

        }finally {
            if (returnmsg == "成功"){

            }else {

            }

            return dtzfpohpp01PRD;
        }

    }


}
